/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spring;

/**
 *
 * @author Alexx
 */
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.FileSystemResource;

public class Main1 {
public static void main(String[] args) {
  BeanFactory factory = new XmlBeanFactory(new FileSystemResource("E:\\Книги\\java\\dz\\TicTacToe\\src\\beans.xml"));
  HelloWorld greetingService = (HelloWorld) factory.getBean("helloWorld");
  greetingService.hello();
  }
}
